import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations'
Vue.use(Vuex)
let state = {
  // userInfo: {
  //   accountInfo: false,
  //   account: '',
  //   userId:''
  // },
  userInfo:JSON.parse(localStorage.getItem('userInfo')) || {}
}
export default new Vuex.Store({
    state,
    mutations
})